import service from '@/utils/request'

// 登录
export function login(data) {
  return service({
    url: '/admin/login',
    method: 'post',
    data
  })
}

// 信息获取
export function getUserInfo(data) {
  return service({
    url: '/admin/info',
    method: 'post',
    data
  })
}

// 修改密码
export function updatePassword(data) {
  return service({
    url: '/admin/password',
    method: 'post',
    data
  })
}

// 用户列表
export function getUserList(data) {
  return service({
    url: '/user/list',
    method: 'post',
    data
  })
}

// 用户禁用
export function disabledUser(data) {
  return service({
    url: '/user/enable',
    method: 'post',
    data
  })
}

// 商户列表
export function getMerchantList(data) {
  return service({
    url: '/merchant/list',
    method: 'post',
    data
  })
}

// 商户详情
export function getMerchantDetail(data) {
  return service({
    url: '/merchant/detail',
    method: 'post',
    data
  })
}

// 商户审核通过
export function merchantApprovedOk(data) {
  return service({
    url: '/merchant/approved',
    method: 'post',
    data
  })
}

// 商户审核不通过
export function merchantApprovedNo(data) {
  return service({
    url: '/merchant/reject',
    method: 'post',
    data
  })
}

// 技师列表
export function getTechnicianList(data) {
  return service({
    url: '/technician/list',
    method: 'post',
    data
  })
}

// 技师详情
export function getTechnicianDetail(data) {
  return service({
    url: '/technician/detail',
    method: 'post',
    data
  })
}

// 技师审核通过
export function technicianApprovedOk(data) {
  return service({
    url: '/technician/approved',
    method: 'post',
    data
  })
}

// 技师审核不通过
export function TechnicianApprovedNo(data) {
  return service({
    url: '/technician/reject',
    method: 'post',
    data
  })
}

// 广告列表
export function getAdvertisementList(data) {
  return service({
    url: '/advertisement/list',
    method: 'post',
    data
  })
}

// 广告详情
export function getAdvertisementDetail(data) {
  return service({
    url: '/advertisement/detail',
    method: 'post',
    data
  })
}

// 广告新增 编辑
export function advertisementEditAdd(data) {
  return service({
    url: '/advertisement/form',
    method: 'post',
    data
  })
}

// 广告禁用
export function advertisementEnable(data) {
  return service({
    url: '/advertisement/enable',
    method: 'post',
    data
  })
}

// 文案列表
export function getWritingList(data) {
  return service({
    url: '/writing/list',
    method: 'post',
    data
  })
}

// 文案详情
export function getWritingDetail(data) {
  return service({
    url: '/writing/detail',
    method: 'post',
    data
  })
}

// 文案新增 编辑
export function writingEditAdd(data) {
  return service({
    url: '/writing/form',
    method: 'post',
    data
  })
}

// 文案禁用
export function writingEnable(data) {
  return service({
    url: '/writing/enable',
    method: 'post',
    data
  })
}
